Back to projects

Nest Chat

A high-performance chat application leveraging Redis Pub/Sub and WebSockets for instantaneous, scalable communication.

Nest Chat

About the Project

NestChat is a real-time messaging platform designed for speed. By utilizing Redis as a message broker and Socket.io for persistent connections, the app handles message delivery with sub-millisecond latency. The project focuses on horizontal scalability, ensuring that even as user traffic increases, the Pub/Sub architecture keeps chat rooms synchronized across multiple server instances. Authentication is handled via NextAuth with Google integration for a seamless onboarding experience.

Key Features & Implementation

Real-Time Sync: Sub-millisecond message delivery using Socket.io.

Redis Pub/Sub: Ensuring message persistence and cross-server synchronization.

Google OAuth: Secure and fast user authentication flow.

Presence Tracking: Real-time 'Online/Offline' status for all contacts.

Optimistic Updates: Instant UI feedback for sent messages before server confirmation.

Responsive Design: A desktop-class chat experience on mobile devices.

Project Screenshots

Nest Chat preview 2
Nest Chat preview 3
Nest Chat preview 4
Nest Chat preview 5

Technologies

Next.jsTypeScriptRedisSocket.ioNextAuthTailwind CSSShadCN UI